<!DOCTYPE html>
<#assign ctx=Session.basePath>
<html>
<head>
    <meta http-equiv="refresh" content="text/html; charset=utf-8" />
    <title>添加列表</title>
    <link href="${ctx}/easyui/themes/bootstrap/easyui.css" rel="stylesheet" />
    <link href="${ctx}/easyui/themes/icon.css" rel="stylesheet" />
    <script src="${ctx}/easyui/jquery.easyui.min.js"></script>
    <script src="${ctx}/easyui/locale/easyui-lang-zh_CN.js"></script>
</head>
<script>
    $(".btn-search").click(function () {
        var val = $("#guanid").val();
        if(val == "0" ){
            alert("请选择需要删除的列表！");
            return;
        }
        $.ajax({
            url:"${ctx}/ship/guanzhu/deleteGZ?gzid="+val,
            type:"POST",
            success:function (data) {
                if(data){
                    alert("删除成功");
                    window.parent.layer.closeAll();
                }else{
                    alert("删除异常");
                }
            }
        })
    })
</script>
<body>
    <table>
        <div>
            <tr>
                <td>请选择删除列表：</td>
                <td>
                    <select id="guanid" style="width: 100px;">
                        <option value="0">==请选择==</option>
                        <#if guanZhuList??>
                    <#list guanZhuList as guanzhu>
                        <option value="${guanzhu.id}">${guanzhu.name}</option>
                    </#list>
                        </#if>
                    </select>
                </td>
            </tr>
        </div>
        <div>
            <tr>
                <td><a href="#" class="easyui-linkbutton btn-search" iconCls="icon-remove" style="width:100%;height:32px">删除</a></td>
            </tr>
        </div>
    </table>
</body>
</html>